package de.tsajar.es.expiration;

import com.jme3.network.serializing.Serializable;
import com.simsilica.es.EntityComponent;
import com.simsilica.es.PersistentComponent;

/**
 *
 * @author Eike Foede
 */
@Serializable
public class ExpirationComponent implements PersistentComponent {

    private float secondsToLive;

    public ExpirationComponent() {
    }

    public ExpirationComponent(float secondsToLive) {
        this.secondsToLive = secondsToLive;
    }

    public float getSecondsToLive() {
        return secondsToLive;
    }
}
